import request from '@/utils/http'

const apiList = {
    login: 'account/login',
    qrcode: 'account/qrcode',
    register: 'account/register',
    userInfo: 'user/userInfo',
}

export default {
    login: data => {
        return request.post(apiList.login, data)
    },
    qrcode: data => {
        return request.post(apiList.qrcode, data)
    },
    register: data => {
        return request.post(apiList.register, data)
    },
    userInfo: data => {
        return request.get(apiList.userInfo, { params: data })
    },
}